package com.yxw.live_vod_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import java.io.Serializable;


/** 
 * @author liuxin
 * @create 2023-12-04 14:18:55 
 * @description 系统分享记录
 */
@Data
@TableName(value ="yx_sys_share")
@ApiModel(value = "系统分享记录" , description="yx_sys_share")
public class YxSysShareEntity  implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "share_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="主键")
    private Long shareId;
    @TableField(value="buss_id")
    @ApiModelProperty(value="分享对象ID")
    private String bussId;

    @TableField(value="create_time")
    @ApiModelProperty(value="创建时间（分享时间）")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @TableField("live_shop_id")
    @ApiModelProperty(value = "对应店铺Id")
    private Long liveShopId;
    
    @TableField(value="user_id")
    @ApiModelProperty(value="分享人ID")
    private Long userId;

    @TableField(value="user_name")
    @ApiModelProperty(value="分享人名称")
    private String userName;

    @TableField(value="share_user_id")
    @ApiModelProperty(value="被分享人ID")
    private Long shareUserId;

    @TableField(value="share_user_name")
    @ApiModelProperty(value="被分享人名称")
    private String shareUserName;

    @TableField(value="share_type")
    @ApiModelProperty(value="分享类型 1：视频 2：直播")
    private Integer shareType;

    @TableField(value="share_content")
    @ApiModelProperty(value="分享内容")
    private String shareContent;

    @TableField(value="share_user_type")
    @ApiModelProperty(value="被分享对象类型 1：人员  2：店铺")
    private Integer shareUserType;
}
